// ==========================================================================
// GFast自动生成service操作代码。
// 生成日期：2024-11-11 17:42:22
// 生成路径: internal/app/system/service/schools.go
// 生成人：王中阳
// desc:学校
// company:云南奇讯科技有限公司
// ==========================================================================

package service

import (
	"context"

	"github.com/gogf/gf/v2/net/ghttp"
	"github.com/tiger1103/gfast/v3/internal/app/system/model"
)

type ISchools interface {
	List(ctx context.Context, req *model.SchoolsSearchReq) (res *model.SchoolsSearchRes, err error)
	GetExportData(ctx context.Context, req *model.SchoolsSearchReq) (listRes []*model.SchoolsInfoRes, err error)
	Import(ctx context.Context, file *ghttp.UploadFile) (err error)
	GetById(ctx context.Context, Id int) (res *model.SchoolsInfoRes, err error)
	Add(ctx context.Context, req *model.SchoolsAddReq) (err error)
	Edit(ctx context.Context, req *model.SchoolsEditReq) (err error)
	Delete(ctx context.Context, Id []int) (err error)
}

var localSchools ISchools

func Schools() ISchools {
	if localSchools == nil {
		panic("implement not found for interface ISchools, forgot register?")
	}
	return localSchools
}

func RegisterSchools(i ISchools) {
	localSchools = i
}
